package openase.audiosearch.comm.response;

public enum ResponseType {

	SEARCH_RESULT(1),

	REGISTRATION_SUCCESFUL(2),

	EXECUTION_ERROR(3),

	UNKNOWN_REQUEST(4);

	private byte id;

	private ResponseType(int id) {
		this.id = (byte) id;
	}

	public byte getId() {
		return id;
	}

	public static ResponseType getType(byte id) {
		for (ResponseType type : values()) {
			if (id == type.id) {
				return type;
			}
		}
		return null;
	}

}
